<app-tip [type]="tipType"></app-tip>
<div>
  <header class="flex">
    <div class="left" [routerLink]="['/main/index']" id="btn-back">
      <div><i class="fas fa-chevron-left"></i></div>
    </div>
    <div class="center"><span>提现管理</span></div>
    <div class="right" style="position: relative;">
      <span (click)="changeShow()"><i class="fa fa-cog"></i> 设置</span>
      <ul class="down-menu" *ngIf="show">
        <li [routerLink]="['/main/withdraw-cash/alipay']">支付宝帐号</li>
      </ul>
    </div>
  </header>
</div>


<div class="container">
  <div class="main">
    <div class="num">{{statistics.balance | price }}</div>
    <div class="num-desc">总资产（元）</div>
    <div class="withdraw-cash-desc" [routerLink]="['/main/withdraw-cash/withdraw-cash-apply']"><span>去提现 <i class="fa fa-chevron-right"></i></span></div>
  </div>

  <div>
    <div class="list" *ngFor="let v of list">
      <div>提现帐户：支付宝</div>
      <div>提现金额：{{v.money}}元&nbsp;&nbsp;&nbsp;&nbsp;</div>
      <div>状态：<span *ngIf="v.state == '0'">申请提现中</span><span *ngIf="v.state == '1'" style="color: #ff0000;font-weight: bold;">拒绝</span><span *ngIf="v.state == '2'" style="color: #329d38;font-weight: bold;">提现成功</span></div>
      <div *ngIf="v.state == '1'">拒绝理由：<span style="color: #ff0000;font-weight: bold">{{v.remark}}</span></div>
      <div *ngIf="v.state == '1'">拒绝时间：{{v.handle_time}}</div>
      <div *ngIf="v.state == '2'">提现成功时间：{{v.handle_time}}</div>
      <div>提现申请时间：{{v.apply_time}}</div>

    </div>

    <div class="load-more" *ngIf="totalPage > start" (click)="loadMore()"><i class="fa fa-spinner fa-spin fa-fw" style="color: #fff"></i> 点击加载更多...</div>

    <div class="item" *ngIf="listFlag" style="padding: 0.8em;color: #999;background:#fff;text-align: center">
      <span><i class="fa fa-info-circle"></i> 您还没有提现记录！</span>
    </div>
  </div>
</div>
